package com.lqk.facade.factory.factorymethod.pizzastore.order;

import com.lqk.facade.factory.factorymethod.pizzastore.pizza.LDCheesePizza;
import com.lqk.facade.factory.factorymethod.pizzastore.pizza.LDGreekPizza;
import com.lqk.facade.factory.factorymethod.pizzastore.pizza.Pizza;


/**
 * @author lqk
 * @date 2021/12/1 14:54
 */
public class LDOrderPizza extends OrderPizza {
    @Override
    Pizza createPizza(String orderType) {
        Pizza pizza = null;
        if ("cheese".equals(orderType)){
            pizza = new LDCheesePizza();
        }else if ("greek".equals(orderType)){
            pizza = new LDGreekPizza();
        }
        return pizza;
    }
}
